package cn.article.repository;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import cn.article.entity.ArticleInfo;

@Repository
public interface ArticleGrep extends JpaRepository<ArticleInfo, Integer> {

	List<ArticleInfo> findAllByCenterStoreAndProvinceStoreAndCreateTime(String centerStore, String provinceStore,
			Date createTime);

	List<ArticleInfo> findAllByCenterStoreAndCreateTime(String centerStore, Date createTime);

	List<ArticleInfo> findAllByCenterStoreAndProvinceStoreAndCreateTimeAndArticleName(String centerStore,
			String provinceStore, Date createTime, String articleName);

	ArticleInfo findByArticleNum(String articleNum);

	List<ArticleInfo> findAllByProvinceStoreAndCreateTime(String provinceStore, Date createTime);
}
